<?php
use controller\Controller;
use controller\IndexController;
use controller\HomeController;
use controller\GameController;

require dirname(__DIR__) . '/vendor/autoload.php';

if(isset($_REQUEST['page'])){
	switch($_REQUEST['page']){
		case 'index':
			IndexController::run();
			break;
		case 'home':
			HomeController::run();
			break;
		case 'game':
			GameController::run();
			break;
		
	}
}else{
	IndexController::run();
}